package com.teaphy.coroutinecrawler.flow.operators.terminal

import kotlinx.coroutines.*
import kotlinx.coroutines.flow.*


fun main() = runBlocking {

    val sum = flowOf(1, 2, 3)
        .reduce { accumulator, value -> accumulator + value }
    println("sum: $sum")
}